.Wrapper {
  list-style: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  margin-bottom: -1px;
  padding: 2px 0;

  &.clone {
    display: inline-block;
    pointer-events: none;
    padding: 0;
    padding-left: 10px;
    padding-top: 5px;

    .TreeItem {
      --vertical-padding: 5px;

      padding-right: 24px;
      border-radius: 4px;
      box-shadow: 0px 15px 15px 0 rgba(34, 33, 81, 0.1);
    }


  }

  &.ghost {
    &.indicator {
      opacity: 1;
      position: relative;
      z-index: 1;
      margin-bottom: -1px;

      .TreeItem {
        position: relative;
        padding: 0;
        height: 8px;
        border-color: #2389ff;
        background-color: #56a1f8;

        &:before {
          position: absolute;
          left: -8px;
          top: -4px;
          display: block;
          content: '';
          width: 12px;
          height: 12px;
          border-radius: 50%;
          border: 1px solid #2389ff;
          background-color: #ffffff;
        }

        >* {
          /* Items are hidden using height and opacity to retain focus */
          opacity: 0;
          height: 0;
        }
      }
    }

    &:not(.indicator) {
      opacity: 0.5;
    }

    .TreeItem>* {
      box-shadow: none;
      background-color: transparent;
    }
  }

  .TreeItemWraper {
    padding-left: var(--spacing);
    display: flex;
    align-items: center;
    flex: 1;
  }

  .Sequence {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    position: relative;
    padding-left: 16px;
    touch-action: none;
    appearance: none;

    &.Breakpoint {
      &:before {
        content: '';
        background-color: #ee2223;
        position: absolute;
        top: calc(50% - 5px);
        left: 0px;
        width: 8px;
        height: 8px;
        border-radius: 4px;
        border: 1px solid #ee2223;
      }
    }
  }

  .Content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    border: 1px solid #dedede;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 4px;
    height: 30px;
    line-height: 30px;

    &.doneCommand {
      background-color: #d1ffd8 !important;
    }

    &.warningCommand {
      background-color: #f8cf9d !important;
      color: orange;
    }

    &.errorCommand {
      background-color: #f7c1c1 !important;
      color: red;
    }

    &.runningCommand {
      background-color: #d5d6f9 !important;
    }

    &.commentCommand {
      background-color: transparent;
      color: #ccc;
      font-style: italic;
    }

    &.selectedCommand {
      background-color: #fdffd1 !important;
    }
  }

}

.TreeItem {
  --vertical-padding: 10px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  // padding: var(--vertical-padding) 10px;
  color: #222;
  box-sizing: border-box;
}

.Text {
  // flex-grow: 1;
  padding-left: 0.5rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.Count {
  position: absolute;
  top: -10px;
  right: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #2389ff;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.disableInteraction {
  pointer-events: none;
}

.disableSelection,
.clone {

  .Text,
  .Count {
    user-select: none;
    -webkit-user-select: none;
  }
}

.Collapse {
  position: absolute;
  left: -30px;

  svg {
    transition: transform 250ms ease;
  }

  &.collapsed svg {
    transform: rotate(-90deg);
  }
}

.ChildLine {
  position: absolute;
  top: 32px;
  width: 1px;
  left: 0;
  background: #eee
}